<?php
/**
 * 直通车评论
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ThroughtrainComment extends Model
{
    //
	protected $table = 'throughtrain_comment';

    protected function getDateFormat()
    {
        return 'U';
    }


    public function user()
    {
        return $this->belongsTo('App\Models\User', 'uid', 'uid');
    }

    public function ztc()
    {
        return $this->belongsTo('App\Models\Throughtrain', 'throughtrain_id', 'id');
    }
}
